package com.ruoyix.weblog.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 资源路径业务对象 blog_resource_path
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogResourcePathBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 分类
     */
    @NotBlank(message = "分类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classify;

    /**
     * 封面
     */
    @NotBlank(message = "封面不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cover;

    /**
     * 链接
     */
    @NotBlank(message = "链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空", groups = { AddGroup.class, EditGroup.class })
    private String introduction;

    /**
     * 资源类型
     */
    @NotBlank(message = "资源类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 是否启用[0:否，1:是]
     */
    @NotNull(message = "是否启用[0:否，1:是]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;



}
